﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmFichaAcademica.aspx.cs" Inherits="UI.DireccionAcademica.frmFichaAcademica" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


<table class=BTabla>
        <tr>
            <td class="style8">
                <table class="style1" style="width: 99%; margin-right: 0px;">
        <tr>
            <td class="filaTabla" colspan="8">
                Búsqueda de Alumnos</td>
        </tr>
        <tr>
            <td class="style13">
                &nbsp;</td>
            <td class="style11">
                &nbsp;</td>
            <td class="style10">
                &nbsp;</td>
            <td class="style9">
                &nbsp;</td>
            <td class="style9">
                &nbsp;</td>
            <td class="style12">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style13">
                &nbsp;</td>
            <td class="style11">
                <asp:Label ID="Label1" runat="server" Text="Código/Nombres"></asp:Label>
            </td>
            <td class="style10">
                <asp:TextBox ID="txtNombre" runat="server" Width="257px"></asp:TextBox>
            </td>
            <td class="style9">
                            <asp:ImageButton ID="btnModal" runat="server" Height="28px" 
                                ImageUrl="~/Imagenes/Botones/Buscar.png" ToolTip="Buscar" Width="27px" 
                                onclick="btnModal_Click" />
            </td>
            <td class="style9">
                <asp:Label ID="Label2" runat="server" Text="DNI"></asp:Label>
            </td>
            <td class="style12">
                <asp:TextBox ID="txtDni" runat="server" Width="116px"></asp:TextBox>
            </td>
            <td>
                <asp:Button ID="btnBuscar" runat="server" Height="32px" Text="Buscar" 
                    Width="88px" onclick="btnBuscar_Click" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style13">
                &nbsp;</td>
            <td class="style11" colspan="4">
                <asp:Label ID="lblMensaje" runat="server" ForeColor="Red"></asp:Label>
            </td>
            <td class="style12">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
                </td>
        </tr>
    </table>
<table class="style1" style="width: 77%">
        <tr>
            <td align="center">
                <asp:GridView ID="grvAlumnos" runat="server" AutoGenerateColumns="False" 
                    Width="811px" Caption="Alumnos encontrados" AllowPaging="True" 
                    PageSize="15" onselectedindexchanged="grvAlumnos_SelectedIndexChanged" 
                    onpageindexchanging="grvAlumnos_PageIndexChanging">
                    <Columns>
                        <asp:BoundField DataField="codigo" HeaderText="Código" >
                        <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="nombres" HeaderText="Nombres" >
                        <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="idestado" HeaderText="Estado" />
                        <asp:BoundField DataField="sexo" HeaderText="Sexo">
                        <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CodigoEspecialidad" 
                            HeaderText="Codigo Especialidad" />
                        <asp:BoundField DataField="NombreEspecialidad" 
                            HeaderText="Nombre Especialidad" />
                        <asp:CommandField HeaderText="Ficha Rendimiento" SelectText="PDF" 
                            ShowSelectButton="True" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
</ContentTemplate>

<br />
 <asp:Panel ID="Panel2" runat="server"
        style="text-align: center">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <Triggers>
    <asp:PostBackTrigger ControlID= "grvAgregaAlumnos" />
    </Triggers>
    <ContentTemplate>
    
        <table class="BTabla">
            <tr>
                <td class="filaTabla" colspan="4">
                    Búsqueda de Alumnos</td>
            </tr>
            <tr>
                <td class="style31">
                </td>
                <td class="style29">
                </td>
                <td class="style21">
                </td>
                <td class="style30">
                </td>
            </tr>
            <tr>
                <td class="style31">
                    &nbsp;</td>
                <td class="style29">
                    Codigo/Nombre</td>
                <td class="style22">
                    <asp:TextBox ID="txtModalCodigo" runat="server" Width="155px"></asp:TextBox>
                </td>
                <td style="text-align: left; margin-left: 40px;" class="style30">
                    <asp:Button ID="btnBuscarModal" runat="server" Height="35px" Text="Buscar" 
                        Width="90px" onclick="btnBuscarModal_Click" />
                </td>
            </tr>
            <tr>
                <td class="style31">
                    &nbsp;</td>
                <td class="style24" colspan="3">
                    <asp:Label ID="lblMensajeModal" runat="server" style="color: #FF0000"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style31" colspan="4">
                    <asp:GridView ID="grvAgregaAlumnos" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" 
                        onselectedindexchanged="grvAgregaAlumnos_SelectedIndexChanged" Width="622px">
                        <Columns>
                            <asp:CommandField SelectText="Agregar" ShowSelectButton="True" />
                            <asp:BoundField DataField="codigo" HeaderText="Código">
                            <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="nombres" HeaderText="Nombres">
                            <ItemStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            
        </table>
        
   </ContentTemplate>
   </asp:UpdatePanel>



        <asp:Button ID="btnSalir" runat="server" Height="33px" onclick="btnSalir_Click" 
            Text="Salir" Width="86px" />
    </asp:Panel>
    <asp:HiddenField  ID="HiddenFiel1" runat="server"/>
    <asp:ModalPopupExtender ID="mpeAgregaAlumno" runat="server"
    PopupControlID="Panel2" TargetControlID="HiddenFiel1" BackgroundCssClass="modalBackground">

   
    </asp:ModalPopupExtender>

    

   
</asp:Content>
